package com.teddy.model;

import java.util.Observable;
import java.util.Observer;

import com.teddy.model.abstracts.ObjectPool;
import com.teddy.model.abstracts.SemanticObject;


public class ThesaurusPool extends ObjectPool implements Observer{

	@Override
	public void add(SemanticObject obj) {
		getMembers().add(obj);
	}

	@Override
	public void remove(SemanticObject obj) {
		getMembers().remove(obj);
	}

	@Override
	public void rename(SemanticObject obj, String newName) {

	}

	@Override
	public void update(Observable arg0, Object arg1) {
		SemanticObject so = (SemanticObject) arg0;
		if (so.getURI() == null){
			remove(so);
		}
	}

}
